home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / OpenDoc / Interfaces / IDL / Clipbd.idl < prev    next >
Encoding:
Text File  |  1997-02-13  |  2.3 KB  |  104 lines  |  [TEXT/MPS ]

  1. //#    Copyright:    © 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  2.  
  3. #ifndef _CLIPBD_
  4. #define _CLIPBD_
  5.  
  6. #ifndef _ODOBJECT_
  7. #include "ODObject.idl"
  8. #endif
  9.  
  10. //=====================================================================================
  11. // Classes defined in this interface
  12. //=====================================================================================
  13. interface  ODClipboard;
  14.  
  15. //=====================================================================================
  16. // Classes used by this interface
  17. //=====================================================================================
  18. interface  ODStorageUnit;
  19. interface  ODDraft;
  20. interface  ODPlatformTypeList;
  21. #ifdef _PLATFORM_MACINTOSH_
  22. interface  ODFacet;
  23. #endif //# _PLATFORM_MACINTOSH_
  24.  
  25. //=====================================================================================
  26. // ODClipboard
  27. //=====================================================================================
  28.  
  29.  
  30. interface ODClipboard :  ODObject
  31. {
  32.     ODUpdateID GetUpdateID();
  33.                           
  34.     void Clear();
  35.     
  36.     ODStorageUnit GetContentStorageUnit();
  37.  
  38.     ODUpdateID ActionDone(in ODCloneKind cloneKind);
  39.  
  40.     void ActionUndone(in ODUpdateID update, in ODCloneKind originalCloneKind);
  41.  
  42.     void ActionRedone(in ODUpdateID update, in ODCloneKind originalCloneKind);
  43.  
  44.     void SetPlatformClipboard(in ODPlatformTypeList typeList);
  45.     
  46.     void ExportClipboard();
  47.  
  48.     void DraftSaved(in ODDraft draft);
  49.  
  50.     void DraftClosing(in ODDraft draft);
  51.  
  52. #ifdef _PLATFORM_MACINTOSH_
  53.  
  54.     ODBoolean ShowPasteAsDialog(
  55.                     in        ODBoolean                canPasteLink,
  56.                     in        ODPasteAsMergeSetting    mergeSetting,
  57.                     in        ODFacet                    facet,
  58.                     in        ODTypeToken                viewType,
  59.                     out        ODPasteAsResult            theResult);
  60.  
  61. #endif //# _PLATFORM_MACINTOSH_
  62.  
  63.  
  64. #ifdef __SOMIDL__
  65. #ifdef _PLATFORM_MACINTOSH_
  66.     implementation
  67.     {
  68.         majorversion = 1; minorversion = 0;
  69.             
  70.         functionprefix = ODClipboard;
  71.  
  72.         override:
  73.             somUninit,
  74.             Purge;
  75.  
  76.         releaseorder:
  77.             GetUpdateID,
  78.             Clear,
  79.             GetContentStorageUnit,
  80.             ActionDone,
  81.             ActionUndone,
  82.             ActionRedone,
  83.             SetPlatformClipboard,
  84.             ExportClipboard,
  85.             DraftSaved,
  86.             DraftClosing,
  87.             ShowPasteAsDialog,
  88.             reserved1,
  89.             reserved2,
  90.             reserved3,
  91.             reserved4,
  92.             reserved5,
  93.             reserved6,
  94.             reserved7,
  95.             reserved8;
  96.         
  97.  
  98.   };
  99. #endif //# _PLATFORM_MACINTOSH_
  100. #endif //# __SOMIDL__
  101. };
  102.  
  103. #endif // _CLIPBD_
  104.